import time

from flask import Flask, render_template, request,session,redirect
import json
from . import finance
import os
from frameworks.cores.Config import *
from frameworks.utils.JsonResult2 import *
from frameworks.cores.LoadClass import *
import akshare as ak
from flask import Flask, render_template
from pyecharts.charts import Line
from pyecharts import options as opts
import pandas as pd

basepath = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
config = Config(basepath)

apimap = config.getApi()
env = apimap["base"]
print(env)
from flask_session import Session

jsonResult = JsonResult2()

loader = LoadClass()

import datetime
import time

@finance.route("/")
def home():
    timestamp = int(time.time())
    return render_template("member_index.html",timestamp=timestamp)

@finance.route("/qihuo")
def qihuo():
    timestamp = int(time.time())
    return render_template("member_qihuo.html",timestamp=timestamp)


